package com.tags

import com.beans.AdLog

/**
  * ClassName:TagsToAd
  * Package:com.tags
  * Desciption:
  *
  * @date:2019 /8/24 17:18
  * @author:17611219021 @sina.cn
  */
object TagsToAd extends Tags {
  override def makeTags(args: Any*): Map[String, Int] = {
    var map = Map[String,Int]()
    val adlog=args(0).asInstanceOf[AdLog]
    //广告类型
    val gglx = adlog.gglx
    val imei = adlog.imei
    val province = adlog.province
    val area=adlog.area
    val sb = adlog.sb
    val yys = adlog.yys
    map += "GGLX"+gglx ->1
    map += "IMEI"+imei ->1
    map += "PROVINCE"+province ->1
    map += "AREA"+area ->1
    map += "SB"+sb ->1
    map += "YYS"+yys ->1
    map
  }
}
